<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<title>基于canvas的动态马赛克文字特效|DEMO_jQuery之家-自由分享jQuery、html5、css3的插件库</title>
	<link rel="stylesheet" type="text/css" href="css/normalize.css" /><!--CSS RESET-->
	<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css"><!--演示页面样式，使用时可以不引用-->
	<style>
		#input {
		  position: absolute;
		  bottom: 10px;
		  left: 50%;
		  width: 8em;
		  max-width: 80%;
		  background: none;
		  border: none;
		  outline: none;
		  border-bottom: 2px solid #fff;
		  color: #fff;
		  font-size: 3em;
		  text-align: center;
		  z-index: 999;
		  opacity: .25;
		  -webkit-transform: translateX(-50%);
		          transform: translateX(-50%);
		  transition: opacity .3s;
		}
		#input:hover, #input:focus {
		  opacity: 1;
		}

		body {
		  position: fixed;
		  top: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  margin: 0;
		  padding: 0;
		  -webkit-user-select: none;
		     -moz-user-select: none;
		      -ms-user-select: none;
		          user-select: none;
		}
    canvas{

    }
	</style>
</head>
<body>
	<div class="htmleaf-container">
		<header class="htmleaf-header">
			<h1>基于canvas的动态马赛克文字特效</h1>
			<div class="htmleaf-links">
				<a class="htmleaf-icon icon-htmleaf-home-outline" href="http://www.htmleaf.com/" title="jQuery之家" target="_blank"><span> jQuery之家</span></a>
				<a class="htmleaf-icon icon-htmleaf-arrow-forward-outline" href="http://www.htmleaf.com/html5/html5-canvas/202001065882.html" title="返回下载页" target="_blank"><span> 返回下载页</span></a>
			</div>
		</header>
<!--		<div class="htmleaf-content">-->
<!--			<input type="text" id="input" placeholder="请输入内容" value="#countdown" title="type and press enter" />-->
<!--		</div>-->
	</div>

	<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script>
	<script  src="./js/script.js"></script>
</body>
</html>
